<html>

<head>
	<script src="adapter.min.js"></script>
	<script src="webrtcstreamer.json"></script>
	<script src="webrtcstreamer.js"></script>
	<script>
		window.onload = function () {
			var url = { video: "rtsp://192.168.204.13:51534/live/test1" };
			this.webRtcServer = new WebRtcStreamer("video", "http://192.168.204.13:64827");
			this.webRtcServer.connect(url.video, url.audio, webrtcConfig.options);

			var url2 = { video: "rtsp://192.168.204.13:51534/live/test1" };
			this.webRtcServer2 = new WebRtcStreamer("video2", "http://192.168.204.13:64827");
			this.webRtcServer2.connect(url2.video, url2.audio, webrtcConfig.options);
		}
		window.onbeforeunload = function () {
			this.webRtcServer.disconnect();
			this.webRtcServer2.disconnect();
		}
	</script>
</head>

<body>
	<video id="video" muted playsinline controls></video>
	1
	<video id="video2" muted playsinline controls></video>
</body>

</html>